<?php
/**
 * IMMOPHP
 * Utilisation de smarty
 * **/
$path_smarty = __FILE__;                                                                                                        // Definition du chemin
$path_smarty = str_replace('kernel'. DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'smarty.php','',$path_smarty);    // Chemin absolue
$smarty_path = $path_smarty . 'kernel/includes/smarty/';                                                                        // Chemin fichier smarty

define('SMARTY_DIR', $smarty_path);                                                                                             // Definition constante smarty

require SMARTY_DIR . 'Smarty.class.php';                                                                                        // Inclusion class

$smarty = new Smarty();                                                                                                         // Declaration de la class smarty
$smarty->debugging = false;                                                                                                     // Debug a false
// Utilisation dossier upload tmp pour le cache
$smarty->compile_dir = $path_smarty . 'template_c/';                                                                            // Definition cache template compile
//$smarty->setCacheDir($path_common . 'upload/temporaire/');
$smarty->cache_dir = $path_smarty . 'cache/';                                                                                   // Repertoire du cache
$smarty->cache_lifetime = 3600;
$smarty->allow_php_tag=true;
?>